import React from 'react'

//盘点单列表
export async function apiStockTakeListPage(params) {
    return await React.$post('/admin/stockTakeList/page', params);
}
// 增加前置接口
export async function apiStockTakeListAddBefore(params) {
  return await React.$post('/admin/stockTakeList/addBefore', params);
}
// 保存盘点单
export async function apiStockTakeListAdd(params) {
  return await React.$post('/admin/stockTakeList/add', params);
}
// 增加盘点商品
export async function apiStockTakeInfoAdd(params) {
  return await React.$post('/admin/stockTakeInfo/add', params);
}
// 删除盘点商品
export async function apiStockTakeInfoDel(params) {
  return await React.$post('/admin/stockTakeInfo/del', params);
}
// 提交
export async function apiStockTakeListExecute(params) {
  return await React.$post('/admin/stockTakeList/execute', params);
}
// 查看
export async function apiStockTakeListView(params) {
  return await React.$post('/admin/stockTakeList/view', params);
}
// 列表删除
export async function apiStockTakeListDel(params) {
  return await React.$post('/admin/stockTakeList/del', params);
}

// 库存管理分页
export async function apiStockLibraryGoodsPage(params) {
  return await React.$post('/admin/stockLibraryGoods/page', params);
}

// 导出库存信息 
export async function apiStockLibraryGoodsList(params) {
  return await React.$post('/admin/stockLibraryGoods/list', params);
}
// 物品详情
export async function apiStockLibraryGoodsDetilList(params) {
  return await React.$post('/admin/stockLibraryGoods/detilList', params);
}

// 修改凭证编码
export async function apiPostVoucherCode(params) {
  return await React.$post('/admin/stockTakeList/changeStockTakeVoucherCode',params)
}

// 查询库存占用
export async function apiStockLibraryGoodsActivityWait(params) {
  return await React.$post('/admin/stockLibraryGoods/activityWait',params)
}

// 修改条形码
export async function apiStockUpdateSNCode(params) {
  return await React.$postJson('/admin/stockLibraryGoods/updateSNCode ',params)
}
